package com.ninjas.module.error.service.impl;

import com.ninjas.module.error.domain.dto.ErrorStatisticsDTO;
import com.ninjas.module.error.mapper.StatisticsMapper;
import com.ninjas.module.error.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsMapper statisticsMapper;

    @Override
    public ErrorStatisticsDTO indexError(LocalDateTime start, LocalDateTime end) {
        return statisticsMapper.indexErrorStatistics(start, end);
    }
}
